package com.jl.model.niuniu.enums;

/*
高级选项
 */
public enum AdvancedOptions {

    type1("1","中途禁入"),
    type2("2","托管"),
    type3("3","搓牌"),
    type4("4","暗抢庄"),
    type5("5","王癞子"),
    type8("8","推注限制"),
    type9("9","下注翻倍");

    private String id;
    private String desc;

    AdvancedOptions(String id, String desc) {
        this.id = id;
        this.desc = desc;
    }

    public String getId() {
        return id;
    }

    public String getDesc() {
        return desc;
    }

    public static String typeStr(String desc){
        String[] split = desc.split(",");
        for (String s : split) {
            if (s.equals(AdvancedOptions.type4)){
                return "暗抢庄";
            }else {
                return "明牌抢庄";
            }
        }
        return null;
    }

}
